/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service;


import myUtils.page.Result;
import po.Mail;

/**
 *
 * @author sony
 */
public interface MailService {

    public Result getReceiveMails(int id,int page);

    public Result getSendMails(int id, int page);

    public boolean isAuthor(int mailId, int userId);

    void addMail(Mail mail);
    Mail getMail(int id);
    void deleteMail(int id);
    void updateMail(Mail mail);
 
}
